package com.itheima.common;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class ExceptionS {
    @ExceptionHandler(Exception.class)
    public R ExceptionC(Exception e) {
        e.printStackTrace();
        return R.error("系统繁忙,稍后再试!");
    }
}
